package com.zcxy.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zcxy.mybatis.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * 角色_用户
 *
 * @author zcc
 * @email 860474958@qq.com
 * @date 2020-06-04
 */
@Data
@TableName("sys_role_user")
@ApiModel(value = "SysRoleUser", description = "角色_用户实体对象")
public class SysRoleUser extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键", required = false)
    @TableId(type = IdType.UUID)
    @Length(max = 50, message = "id 超出最大长度50")
    private String id;

    @ApiModelProperty(value = "用户表主键", required = false)
    @Length(max = 50, message = "userId 超出最大长度50")
    private String userId;

    @ApiModelProperty(value = "角色表主键", required = false)
    @Length(max = 50, message = "roleId 超出最大长度50")
    private String roleId;


}
